package tsing.javase.designpattern.stratege.vipstrategy.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import tsing.javase.designpattern.stratege.vipstrategy.context.GiveVipStrategyContext;


/**
 * @Date 2023/10/24 17:17
 */
@RestController
@RequestMapping("/givevip")
public class GiveVipController {

    @Autowired
    private GiveVipStrategyContext context;

    @RequestMapping("/test")
    public String testGiveVip(int type){
        context.doHandleGiveVip(type);
        return "OK";
    }
}
